package com.clz.latte.utils.timer;

import java.util.TimerTask;

/**
 * Created by Administrator on 2017/12/23.
 */

public class BaseTimeTask extends TimerTask {
    public ITimeListener mITimeListener = null;

    public BaseTimeTask(ITimeListener timeListener) {
        mITimeListener = timeListener;
    }

    @Override
    public void run() {
        if (mITimeListener != null) {
            mITimeListener.onTimer();
        }
    }
}
